package com.lovo.dao;

import com.lovo.bean.Type;
import com.lovo.provider.TypeProvider;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

public interface TypeMapper {
    int deleteByPrimaryKey(Integer typeId);

    int insert(Type record);

    int insertSelective(Type record);

    Type selectByPrimaryKey(Integer typeId);

    int updateByPrimaryKeySelective(Type record);

    int updateByPrimaryKey(Type record);

    @SelectProvider(type = TypeProvider.class,method = "getTypeListProvider")
    @ResultMap("com.lovo.mapper.TypeMapper.BaseResultMap")

    public List<Type> getTypeList();
}